package com.cynteka.cyfoman.core.collection;

/**
 * User: Sergey
 * Date: 29.07.11
 * Time: 11:52
 */
abstract class RegistryItem {

    private CollectionRegistry owner;

    public void setId(String id) {
        this.id = id;
    }

    private String id;

    public RegistryItem(String id) {
        this.id = id;
        if(id == null) {
            throw new NullPointerException("ID of registry item cannot be null");
        }
    }

    public CollectionRegistry getOwner() {
        return owner;
    }

    void setOwner(CollectionRegistry registry) {
        this.owner = registry;
    }

    public String getId() {
        return id;
    }

}
